package cc.customer.system.service.impl;

import cc.customer.common.domain.ResponseBo;
import cc.customer.common.service.impl.BaseService;
import cc.customer.system.domain.Grade;
import cc.customer.system.service.GradeService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GradeServiceImpl extends BaseService<Grade> implements GradeService {

    @Override
    public ResponseBo getAllList(){
        try {
            List<Grade> list = this.selectAll();
            return ResponseBo.ok("",list);
        }catch (Exception e){
            e.printStackTrace();
            return ResponseBo.error();
        }
    }
}
